Skip to contentSkip to conversation

Reverse Prime with intel/amdgpu causes segfault in glamor_block_handler when enabling monitor

Bug 103613 [email protected] 1 participant 6 messages Nov 7, 2017 – Nov 8, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103613

Bug ID: 103613
Summary: Reverse Prime with intel/amdgpu causes segfault in
glamor_block_handler when enabling monitor
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

I have a discrete AMD card (Tonga) using amdgpu and an iGPU (Skylake/HD530) using the intel driver.

I enabled DRI3 on both devices, but xrandr only shows the outputs/monitors of the AMD card.

When I use "xrandr --setprovideroutputsource 1 0" everything is still fine, xrandr shows now all outputs/monitors.

When I try to enable the monitor connected to the iGPU via "xrandr --output HDMI3 --auto" the x-server segfaults with the following backtrace:

#0 0x00007fdffdd2334d in glamor_block_handler () from /usr/lib64/xorg/modules/libglamoregl.so
#1 0x00007fe00d639f8b in amdgpu_glamor_flush () from /usr/lib64/xorg/modules/drivers/amdgpu_drv.so #2 0x00007fe00d62df23 in redisplay_dirty () from /usr/lib64/xorg/modules/drivers/amdgpu_drv.so #3 0x00007fe00d62f728 in AMDGPUBlockHandler_KMS () from /usr/lib64/xorg/modules/drivers/amdgpu_drv.so #4 0x000000000043a27f in BlockHandler ()
#5 0x0000000000587ac3 in WaitForSomething ()

Here are further details, including the Xorg.log and the used configs:
https://gist.github.com/EoD/c1c4f2b4afde2d0523e9ea8bb1567452

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103613

--- Comment #1 from EoD <[email protected]> ---
I also tried using modesetting instead of the other drivers and

Enabling the monitor...

- works, when I set driver=modesetting on the both cards via an xorg.conf
- works, when I set driver=modesetting on the intel card only.
- works, when I set driver=modesetting on the amd card only, but according to listproviders, both cards use modesetting.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103613

--- Comment #2 from EoD <[email protected]> ---
On request from IRC, I also tried using UXA instead of SNA with the intel driver.

It does not crash anymore, but when I try to enable the 2nd monitor, I get a "xrandr: Configure crtc 6 failed" and the following output in the Xorg.log:

[  1537.831] randr: falling back to unsynchronized pixmap sharing
[  1537.831] randr: failed to set shadow slave pixmap
[  1537.831] (EE) intel(G0): failed to set mode: No space left on device
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103613

--- Comment #3 from EoD <[email protected]> ---
Created attachment 135291
--> https://bugs.freedesktop.org/attachment.cgi?id=135291&action=edit
GDBs Backtrace with -O0

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103613

--- Comment #4 from Michel Dänzer <[email protected]> --- Created attachment 135295
--> https://bugs.freedesktop.org/attachment.cgi?id=135295&action=edit
Use the correct ScrnInfoPtr in redisplay_dirty

Does this xf86-video-amdgpu patch fix it?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103613

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           Assignee|[email protected] |[email protected]
                   |.org                        |
            Product|DRI                         |xorg
          Component|DRM/AMDgpu                  |Driver/AMDgpu
            Version|DRI git                     |git
         QA Contact|                            |[email protected]
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel